-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for wait while PV reattach #608
Conversation
d72564e
to
bee5c04
Compare
bee5c04
to
48073d2
Compare
48073d2
to
61d8781
Compare
61d8781
to
c99b715
Compare
pvList := pvMap[i] | ||
vols, err := o.getVolIDsFromDriver(pvList) | ||
for podHash, persistantVolumeList := range pvMap { | ||
persistantVolumeListDeepCopy := persistantVolumeList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to call the DeepCopy()
method in this assignment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value for persistantVolumeList
is changing after every run. Hence I wanted to create a copy of the variable to use it for the object I am building here. I hope that looks okay?
The PR is ready for review. Minor things for TODOs need to be fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes @prashanth26! I have some comments below. The main one about the one goroutine per pod.
4eb698e
to
ca09a31
Compare
ca09a31
to
b0d61c9
Compare
/ok-to-test |
- Draining of pods with PV (Persistent Volume) now waits for re-attachment of PV on a different node. - When volumeAttachments support is enabled on the cluster, it tracks volume attachments to determine this. - Else it falls back to the default PV reattachment timeout value configured. Default value is 3mins. Co-authored-by: Amshuman K R <[email protected]>
b0d61c9
to
d488fd5
Compare
/ok-to-test |
Basic working for support for reattaching works with VolumeAttachments
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #249
Special notes for your reviewer:
Release note: